package com.fanli.bigdata.mytest

/**
 * Created by liangdong.wu on 2016/11/16.
 */
object MovieAlsFun {
  def parseRating(str: String): Rating = {
    val fields = str.split("::")
    assert(fields.size == 4)
    Rating(fields(0).toInt, fields(1).toInt, fields(2).toFloat, fields(3).toLong)
  }
}
